package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 促销方案表
 */
@Data
@TableName("t_promotion")
public class PromotionEntity implements Serializable {

    @TableId(value = "pk_promotionId", type = IdType.AUTO)
    private long promotionId;

    @TableField("p_promotionRef")
    private String promotionRef;//促销申请唯一编号

    @TableField("p_promotionName")
    private String promotionName;//促销方案名

    @TableField("p_promotionDescribe")
    private String promotionDescribe;//方案描述

    @TableField("p_productRef")
    private String productRef;//商品编号

    @TableField("p_productName")
    private String productName;//商品名

    @TableField("p_productType")
    private String productType;//类型

    @TableField("p_productPrice")
    private double productPrice;//商品原价

    @TableField("p_discount")
    private double discount;//折扣率

    @TableField("p_number")
    private int number;//数量

    @TableField("p_status")
    private int status  = 0;//审核状态 0--待审核  1---审核通过 2 ----审核不通过

    @TableField("p_cause")
    private String cause;//不通过原因

    @TableField("p_verifyTime")
    private LocalDateTime verifyTime = LocalDateTime.now();//审核时间

    @TableField("p_verifyName")
    private String verifyName ;//审核员

}
